#ifndef _SYSTEMIO_H_
#define _SYSTEMIO_H_

#ifdef WIN32
#define VMKEYAPI _declspec(dllexport)
#else
#define VMKEYAPI
#endif

typedef struct st_init_conf
{
    char ip[64];				//∑˛ŒÒ∂Àip
    int port;					//∑˛ŒÒ∂Àø⁄
	int ssltype;				//Õ®–≈¿‡–Õ
    int timeout;                //≥¨ ± ±º‰
    int loglevel;               //»’÷æº∂± 1.¥ÌŒÛ»’÷æ 2.µ˜ ‘+¥ÌŒÛ»’÷æ  3.πÿ±’»’÷æ
    
    
    char CA_cert[256];			//CA÷§ ÈŒƒº˛¬∑æ∂
    char client_enc_cert_key[256];		//∑˛ŒÒ∂À÷§ È¬∑æ∂
    char client_sig_cert_key[256];		//∑˛ŒÒ∂ÀÀΩ‘ø¬∑æ∂

	char ip_ca[64];
	int port_ca;
    
}INITCONF;


#ifdef __cplusplus
extern "C" {
#endif
    
	int SystemIO(unsigned char* pBuff, unsigned int* nLen);
	int Init_VMKey(char *path, char *devID);
	int write_conf_vmkey_string(char *title, char *key, char *val, char *filename);
	int write_conf_vmkey_int(char *title, char *key, int val, char *filename);

	int LoadVMKey_bk(char *path);
	int LoadVMKey_ios(char *path, char *devID);
	
#ifdef __cplusplus
}
#endif


#endif
